﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Globalization;
using System.Data.Entity.Design.PluralizationServices;

namespace Happy.Edge.DatabaseSchemaReader
{
    public static class Utils
    {
        private static readonly PluralizationService PluralizationService
            = PluralizationService.CreateService(CultureInfo.CreateSpecificCulture("EN"));

        public static string Pluralize(string world)
        {
            return Utils.PluralizationService.Pluralize(world);
        }

        public static string Singularize(string world)
        {
            return Utils.PluralizationService.Singularize(world);
        }

        public static bool IsPlural(string world)
        {
            return Utils.PluralizationService.IsPlural(world);
        }

        public static bool IsSingular(string world)
        {
            return Utils.PluralizationService.IsSingular(world);
        }
    }
}
